from django.conf.urls import url

from . import views
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns = [
    # /users/usernames/(?P<username>\w{5,20})/count/
    url(r'^usernames/(?P<username>\w{5,20})/$', views.RegisterUsernameView.as_view(), name='usernamecount'),
    url(r'^$', views.RegisterCreateUserView.as_view()),
    url(r'^auths/', obtain_jwt_token),
    url(r'^infos/$', views.UserConterInfo.as_view()),
    url(r'^emails/$', views.EmailView.as_view()),
    url(r'^emails/verification/$', views.VerificationEmailView.as_view()),
    url(r'^addresses/$', views.AddressView.as_view()),
]
